import request from '@/utils/request'

// 开票记录-导出
export function downMallInvoiceList(data) {
  return request({
    url: '/statistics_admin/task/export_fapiao_record',
    method: 'post',
    data
  })
}

// 发票设置
export function invoiceSet(data) {
  return request({
    url: '/business_admin/receipt/fapiaoPreferenceSet',
    method: 'post',
    data,
    headers: {
      'businessId': 39
    }
  })
}

// 查询发票设置开票类型
export function invoiceStatus(data) {
  return request({
    url: '/business_admin/receipt/qryBackFapiaoPreferenceType',
    method: 'post',
    data
  })
}

// 电票开关
export function applyForInvoice(data) {
  return request({
    url: '/business_admin/receipt/fapiaoSwitch',
    method: 'post',
    data
  })
}

// 发票冲红
export function invoiceReset(data) {
  return request({
    url: '/business_admin/receipt/toOpenRedFapiao',
    method: 'post',
    data
  })
}
